﻿using System;

namespace Infrastructure.Entities
{
   internal class LanguageSpecificUri : IEquatable<LanguageSpecificUri>
   {
      public string Uri { get; set; }
      public string Language { get; set; }

      public LanguageSpecificUri(string uri, string language)
      {
         this.Uri = uri;
         this.Language = language;
      }

      #region IEquatable<UriAndLanguage> Members

      public bool Equals(LanguageSpecificUri other)
      {
         return this.Uri == other.Uri && this.Language == other.Language;
      }

      #endregion

      public override int GetHashCode()
      {
         return (this.Uri + this.Language).GetHashCode();
      }
   }
}
